export default [
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/Login.vue')
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('@/views/Home.vue'),
    children: [
      /* 信用评级 */
      {
        path: '/home/credit/creditcard',  //评分卡
        name: 'creditcard',
        component: () => import('@/views/credit/CreditCardView.vue'),
      },
      {
        path: '/home/credit/credita',  //评分等级a
        name: 'credita',
        component: () => import('@/views/credit/CreditaView.vue'),
      },
      {
        path: '/home/credit/creditb',  //评分分类b
        name: 'creditb',
        component: () => import('@/views/credit/CreditbView.vue'),
      },

      /* 客户管理 */
      {
        path: '/home/client/clienta',  // 核心企业管理
        name: 'clientaa',
        component: () => import('@/views/client/ClientaView.vue'),
      },
      {
        path: '/home/client/clientb',  //上下游企业管理
        name: 'ClientbView',
        component: () => import('@/views/client/ClientbView.vue'),
      },
      {
        path: '/home/client/clientc',  //客户黑名单管理
        name: 'ClientcView',
        component: () => import('@/views/client/ClientcView.vue'),  
      },
      /* 贷前管理 */
      {
        path: '/home/preloan/preloana',  //核心企业授信审批
        name: 'preloana',
        component: () => import('@/views/preloan/PreLoanaView.vue'),
      },
      /* 担保物管理 */
      {
        path: '/home/guarantee/Guaranteea',  //担保物管理a
        name: 'clienta',
        component: () => import('@/views/guarantee/GuaranteeaView.vue'),
      },
      {
        path: '/home/guarantee/Guaranteeb',  //担保物审批b
        name: 'clientb',
        component: () => import('@/views/guarantee/GuaranteebView.vue'),
      },
      /* 贷前管理 */
      {
        path: '/home/preloan/preloana',  //核心企业授信审批
        name: 'preloana',
        component: () => import('@/views/preloan/PreLoanaView.vue'),
      },
      {
        path: '/home/preloan/preloanb',  //上下游企业贷款申请
        name: 'preloanb',
        component: () => import('@/views/preloan/PreLoanbView.vue'),
      },
      /* 核心企业授信审批 */
      {
        path: '/home/extension/extensiona',  //核心企业授信申请
        name: 'extensiona',
        component: () => import('@/views/extension/ExtensionaView.vue'),
      },
      {
        path: '/home/extension/extensionb',  //逐级审批
        name: 'extensionb',
        component: () => import('@/views/extension/ExtensionbView.vue'),
      },
      {
        path: '/home/extension/extensionc',  //设置参会人
        name: 'extensionc',
        component: () => import('@/views/extension/ExtensioncView.vue'),
      },
      {
        path: '/home/extension/extensiond',  //贷审会会审
        name: 'extensiond',
        component: () => import('@/views/extension/ExtensiondView.vue'),
      },
      {
        path: '/home/extension/extensione',  //授信结果登记
        name: 'extensione',
        component: () => import('@/views/extension/ExtensioneView.vue'),
      },
      {
        path: '/home/extension/extensionf',  //贷审会主任
        name: 'clientf',
        component: () => import('@/views/extension/ExtensionfView.vue'),
      },
      /* 核心企业贷款审批 */
      {
        path: '/home/loans/loansa',  //逐级审批
        name: 'loansa',
        component: () => import('@/views/loans/LoansaView.vue'),
      },
      
      {
        path: '/home/loans/loansb',  //批贷结果登记
        name: 'loansb',
        component: () => import('@/views/loans/LoansbView.vue'),
      },
      /* 上下游企业贷款审批 */
      {
        path: '/home/upandown/upandowna',  //逐级审批
        name: 'upandowna',
        component: () => import('@/views/upandown/UpandownaView.vue'),
      },
      {
        path: '/home/upandown/Tan',  //逐级审批
        name: 'Tan',
        component: () => import('@/views/upandown/Tan.vue'),
      },
      {
        path: '/home/upandown/upandownb',  //设置参会人
        name: 'upandownb',
        component: () => import('@/views/upandown/UpandownbView.vue'),
      },
     
      {
        path: '/home/upandown/upandownc',  //贷审会会审
        name: 'upandownc',
        component: () => import('@/views/upandown/UpandowncView.vue'),
      },
      {
        path: '/home/upandown/upandownd',  //批贷结果登记
        name: 'upandownd',
        component: () => import('@/views/upandown/UpandowndView.vue'),
      },
      {
        path: '/home/upandown/upandowne',  //贷审会主任
        name: 'upandowne',
        component: () => import('@/views/upandown/UpandowneView.vue'),
      },
      /* 合同管理 */
      {
        path: '/home/contract/contracta',  //核心企业合同签订
        name: 'contracta',
        component: () => import('@/views/contract/ContractaView.vue'),
      },
      {
        path: '/home/contract/contractb',  //上下游企业合同签订
        name: 'contractb',
        component: () => import('@/views/contract/ContractbView.vue'),
      },
      /* 放款管理 */
      {
        path: '/home/loan/loana',  //风控审核
        name: 'loana',
        component: () => import('@/views/loan/LoanaView.vue'),
      },
      {
        path: '/home/loan/loanaone',  //风控审核1
        name: 'loanaone',
        component: () => import('@/views/loan/LoanaoneView.vue'),
        children:[
          {
            path: '/home/loan/loanas/loanone',  //基本信息
            name: 'loanone',
            component: () => import('@/views/loan/loanas/Loanone.vue'),
          },
          {
            path: '/home/loan/loanas/loantwo',  //附件资料
            name: 'loantwo',
            component: () => import('@/views/loan/loanas/Loantwo.vue'),
          },
          {
            path: '/home/loan/loanas/loanthree',  //审批历史
            name: 'loanthree',
            component: () => import('@/views/loan/loanas/Loanthree.vue'),
          },
          {
            path: '/home/loan/loanas/loanfour',  //流程信息
            name: 'loanfour',
            component: () => import('@/views/loan/loanas/Loanfour.vue'),
          },
          {
            path: '/home/loan/loanaone',
            redirect: '/home/loan/loanas/loanone'
          },
        ]
      },
      {
        path: '/home/loan/loanb',  //法务审核
        name: 'loanb',
        component: () => import('@/views/loan/LoanbView.vue'),
      },
      {
        path: '/home/loan/loanc',  //财务总监审核
        name: 'loanc',
        component: () => import('@/views/loan/LoancView.vue'),
      },
      {
        path: '/home/loan/loand',  //放款审核
        name: 'loand',
        component: () => import('@/views/loan/LoandView.vue'),
      },
      /* 贷后管理 */
      {
        path: '/home/postloan/postloana',  //还款管理
        name: 'postloana',
        component: () => import('@/views/postloan/PostloanaView.vue'),
      },
      {
        path: '/home/postloan/postloane',  //还款管理2
        name: 'postloane',
        component: () => import('../views/postloan/PostloanaoneView.vue'),
      },
      {
        path: '/home/postloan/postloanb',  //逾期催收管理
        name: 'postloanb',
        component: () => import('@/views/postloan/PostloanbView.vue'),
      },
      {
        path: '/home/postloan/postloanbone',  //逾期催收管理2
        name: 'postloanbone',
        component: () => import('@/views/postloan/PostloanboneView.vue'),
      },
      {
        path: '/home/postloan/postloanbtwo',  //逾期催收管理3
        name: 'postloanbtwo',
        component: () => import('@/views/postloan/PostloanbtwoView.vue'),
      },
      {
        path: '/home/postloan/postloanc',  //贷款五级分类
        name: 'postloanc',
        component: () => import('@/views/postloan/PostloancView.vue'),
      },
      {
        path: '/home/postloan/postloand',  //资产保全
        name: 'postloand',
        component: () => import('@/views/postloan/PostloandView.vue'),
      },
      {
        path: '/home/postloan/postloandone',  //资产保全1
        name: 'postloandone',
        component: () => import('@/views/postloan/PostloandoneView.vue'),
      },
      /* 报表管理 */
      {
        path: '/home/excel/excela',  //核心企业月度计息表
        name: 'excela',
        component: () => import('@/views/excel/ExcelaView.vue'),
      },
      {
        path: '/home/excel/excelb',  //核心企业贷款项目汇总表
        name: 'excelb',
        component: () => import('@/views/excel/ExcelbView.vue'),
      },
      {
        path: '/home/excel/excelc',  //核心企业贷款业务汇总表
        name: 'excelc',
        component: () => import('@/views/excel/ExcelcView.vue'),
      },
      {
        path: '/home/excel/exceld',  //核心企业贷款业务统计
        name: 'exceld',
        component: () => import('@/views/excel/ExceldView.vue'),
      },
      {
        path: '/home/excel/excele',  //上下游企业月度计息表
        name: 'excele',
        component: () => import('@/views/excel/ExceleView.vue'),
      },
      {
        path: '/home/excel/excelf',  //上下游企业贷款项目汇总
        name: 'excelf',
        component: () => import('@/views/excel/ExcelfView.vue'),
      },
      {
        path: '/home/excel/excelg',  //上下游企业贷款业务汇总
        name: 'excelg',
        component: () => import('@/views/excel/ExcelgView.vue'),
      },
      {
        path: '/home/excel/excelh',  //上下游企业贷款业务统计
        name: 'excelh',
        component: () => import('@/views/excel/ExcelhView.vue'),
      },
       /* 系统设置 */
      {
        path: '/home/systemset/systemseta',  //用户管理
        name: 'systemseta',
        component: () => import('@/views/systemset/SystemaView.vue'),
      },
      {
        path: '/home/systemset/systemsetb',  //角色管理
        name: 'systemsetb',
        component: () => import('@/views/systemset/SystembView.vue'),
      },
      {
        path: '/home',
        redirect: '/home/credit/creditcard'
      },
      {
        path: '/home/systemset/SystembSon',  //角色管理zi
        name: 'systemsetbson',
        component: () => import('@/views/systemset/SystembSon.vue'),
      },
    ]
  },
  {
    path: '/',
    redirect: '/home/credit/creditcard'
  },
  {
    path: '/:error(.*)',
    component: () => import('@/views/NotFound.vue')
  },
]